﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JobDescriptions.aspx.cs"
    Inherits="_Default" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!--#include virtual="include/Head.ascx"-->
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            $("#EditBox").hide();
            $("#btnShowHide").click(function () {
                if ($(this).val() == "Edit") {
                    $("#EditBox").show();
                    $(this).val("Done");
                    $("#DisplayBox").hide();
                }
                else {
                    $("#DisplayBox").show();
                    $("#EditBox").hide();
                    $(this).val("Edit");
                    $("#btnSave").click();
                }
            });
        });
    </script>
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/top.ascx"-->
        </div>
        <div id="main-content1">
            <h2>
                JOB DESCRIPTION</h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmCarrContact" runat="server" autocomplete="off">
                <div class="content-box-header">
                    <%if (nPermissions > 7)
                          { %>
                    <h3>
                        User List</h3>
                    <asp:DropDownList class="cls" ID="drAdminUser" runat="server" Width="70px" AutoPostBack="True"
                        OnSelectedIndexChanged="drAdminUser_Selected">
                    </asp:DropDownList>
                    <asp:Button class="button" ID="btnLock" runat="server" Text="Lock" OnClick="btnLock_Click"
                        Style="float: right;" />
                    &nbsp;
                    <%} %>
                    <input type="button" class="button" id="btnShowHide" runat="server" value="Edit"
                        style="float: right; margin-right: 10px;" />
                    <asp:Button class="button" ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"
                        Style="float: right; display: none;" />
                </div>
                <div class="clear">
                </div>
                <div style="10px;">
                </div>
                <div id="EditBox">
                    <fieldset>
                        <CKEditor:CKEditorControl ID="txtJobDescriptions" runat="server" Toolbar="Bold|Italic|Underline|Strike|FontSize|TextColor|BGColor"
                            Height="300px"></CKEditor:CKEditorControl>
                    </fieldset>
                </div>
                <div id="DisplayBox" style="padding: 10px; line-height: 18px;">
                    <asp:Label ID="lblDisplay" runat="server"></asp:Label>
                </div>
                <div class="clear">
                </div>
                <div id="footer">
                    <%=strPager%>
                </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
